<div class="app-statistics">

    <ol class="breadcrumb" style="font-size: 12px">
        <li>广告中心</li>
        <li  >渠道主</li>
        <li ><a ui-sref="app"class="tittle-color" ui-sref-opts="{inherit:false}">应用管理</a></li>
        <li >统计</li>
    </ol>
    <div class="clearfix mt-10">
        <label class="title">
            <label>A</label>
            <span>{{title.appName}}</span>
        </label>
        <label class="title">
            <label>C</label>
            <span>{{title.channelName}}</span>
        </label>

    </div>
    <div class="panel">
        <div class="searchWapper">
            <div class="form-group searchLump search-condition">
                <div class="searchTitle">筛选：</div>
                <div class="btn btn-xs condition" ng-repeat="(key,value) in search" ng-if="adStyle[value]||adStyle[value]&&(key=='adStyle')">
                    <a  class="close" ng-click="deletes(key)">
                        <span aria-hidden="true">&times;</span>
                    </a>
                    {{adStyle[value]}}
                </div>
            </div>
            <div class="form-group searchLump">
                <div class="searchTitle">广告形式：</div>
                <label class="btn btn-xs" ng-class="{on : search.adStyle == key}"  ng-repeat="(key, value) in adStyle">
                    <input type="radio" class="hide" name="radioPay" ng-value="key" ng-model="search.adStyle" ng-change="searchChange()">{{value}}
                </label>
            </div>

        </div>

            <div class="panel-heading panel-style">
                <div class="row panel-row pad-10">
                    <div class="col-lg-3">

                    </div>
                    <div class="search-operation pull-right">
                        <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'day'}">
                            <input type="radio" class="hide" name="timeType" value="day" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">日
                        </label>
                        <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'week'}">
                            <input type="radio" class="hide" name="timeType" value="week" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">周
                        </label>
                        <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'month'}">
                            <input type="radio" class="hide" name="timeType" value="month" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">月
                        </label>
                    </div>
                </div>
            </div>
            <div class="table-responsive">
                <table class="table table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>日期</th>
                        <th>展示</th>
                        <th>点击</th>
                        <th>点击率</th>
                        <th>独立展示</th>
                        <th>独立点击</th>
                        <th>独立点击率</th>
                        <th>广告收益（千元）</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>统计</td>
                        <td>{{total.cpm}}</td>
                        <td>{{total.clickNum}}</td>
                        <td>{{total.cRate?(total.cRate).toFixed(2) + "%" :""}}</td>
                        <td>{{total.distinctPlayStart}}</td>
                        <td>{{total.distinctClickNum}}</td>
                        <td>{{total.icRate?(total.icRate).toFixed(2) + "%":""}}</td>
                        <td>需要计算</td>
                    </tr>
                    <tr ng-repeat="item in lists">
                        <td>{{item.dayTimeStat}}</td>
                        <td>{{item.cpm}}</td>
                        <td>{{item.clickNum}}</td>
                        <td>{{item.cRate?(item.cRate).toFixed(2) + "%":""}}</td>
                        <td>{{item.distinctPlayStart}}</td>
                        <td>{{item.distinctClickNum}}</td>
                        <td>{{item.icRate?(item.icRate).toFixed(2) + "%":""}}</td>
                        <td>0</td>
                    </tr>
                    </tbody>
                </table>
                <div class="panel-footer">
                    <s-pagination conf="paginationDetail"></s-pagination>
                </div>
                <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
            </div>
        </div>
    </div>
</div>